<!DOCTYPE html>
<html lang='en'>

<head>
    <meta charset='UTF-8'>
    <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    <title>Document</title>
    <script type='text/javascript' src='js/vue.js'></script>
    <script src="https://cdn.bootcss.com/moment.js/2.24.0/moment.min.js"></script>
</head>

<body>
    <div id='app'>
        {{msg}}
        =======
        {{time | dateFormat}}
    </div>
    <script type='text/javascript'>
        Vue.filter('dateFormat', function (qq) {
            return moment(qq).format('YYYY-MM-DD hh:mm:ss')
        })



        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'Hello Vue',
                time: new Date()
            }
        });


    </script>
</body>

</html>